package com.zbkj.crmeb.chant.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 渠道商户资金表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_channel_merchant_account")
@ApiModel(value = "ChannelMerchantAccount", description = "渠道商户资金表")
public class ChannelMerchantAccount implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商户id")
    private Integer merId;
    
    @ApiModelProperty(value = "账户冻结状态, 1为冻结 0 为正常")
    private Boolean status;
    
    @ApiModelProperty(value = "账户金额")
    private BigDecimal account;
    
    @ApiModelProperty(value = "账户类型 0: 月结 1: 预充值")
    private Integer accountType;
    
    @ApiModelProperty(value = "微信账户")
    private BigDecimal withdrawAccount;
    
    @ApiModelProperty(value = "冻结金额")
    private BigDecimal freezeAccount;
    
    @ApiModelProperty(value = "累计交易金额")
    private BigDecimal totalMoney;
    
    @ApiModelProperty(value = "累计已结算金额")
    private BigDecimal closeMoney;
    
    @ApiModelProperty(value = "账户预警金额")
    private BigDecimal warnMoney;
    
    @ApiModelProperty(value = "收款账户名")
    private String bankName;
    
    @ApiModelProperty(value = "收款账户号")
    private String bankNo;
    
    @ApiModelProperty(value = "开户行")
    private String createBank;
    
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "小程序收款账户")
    private String appletBankName;

    @ApiModelProperty(value = "小程序收款账号")
    private String appletBankNo;

    @ApiModelProperty(value = "小程序开户行")
    private String appletCreateBank;

}
